﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UCPhuongThucThanhToan.ascx.cs" Inherits="Admin_UCControls_UCPhuongThucThanhToan" %>

<table width="100%">
   
    <tr>
        <td>
            <asp:GridView ID="GridPhuongThucThanhToan" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" 
                         OnRowCommand="GridPhuongThucThanhToan_RowCommand" 
                         CssClass="mGrid"  
                         PagerStyle-CssClass="pgr"  
                         AlternatingRowStyle-CssClass="alt">
              <Columns>
                    <asp:TemplateField HeaderText="STT">
                    <ItemTemplate>
                         <%# Container.DataItemIndex + 1 %>  
                    </ItemTemplate>
                    </asp:TemplateField>
              
                   <asp:TemplateField HeaderText="Hình Thức" ItemStyle-Width="110px">
                    <ItemTemplate>
                        <%# Eval("HinhThuc") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    
                     <asp:TemplateField HeaderText="Mô tả" ItemStyle-Width="300px">
                    <ItemTemplate>
                        <%# Eval("GhiChu") %>
                    </ItemTemplate>
                    </asp:TemplateField>
                    
                   <asp:TemplateField><ItemTemplate>
                        <asp:LinkButton ID="btnSua" runat="server" Text="Sửa" CommandName="Sua" CommandArgument='<%#Bind("Id")%>' />
                         &nbsp;&nbsp;<asp:LinkButton ID="btnXoa" runat="server" Text="Xóa" CommandName="Xoa" CommandArgument='<%#Bind("Id")%>' OnClientClick="javascript:return confirm('Có chắc xóa Loại Thẻ này không?');"/>
                  </ItemTemplate>
                    </asp:TemplateField>
                    
              </Columns>
              
            </asp:GridView>
        </td>
    </tr>
    <tr>
    <td style="padding-top:5px">
        <asp:Button ID="btnThemMoi" runat="server" Text="Thêm mới" OnClick="btnThemMoi_Click" /></td>
    </tr>
   </table>